﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Admin.ViewModels.OnlineInputModel>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<%@ Import Namespace="SDT.Lib.Paging" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Thêm mới hỗ trợ trực tuyến
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
Thêm mới hỗ trợ trực tuyến
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
<%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
 <td>
    <%= Html.Toolbar("Quay về", "/OnlineSupport", "back") %>
    </td>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%if (ViewData["MessageInfo"] == null)
      { %>
    <% using (Html.BeginForm("Create", "OnlineSupport", FormMethod.Post, new{id = "adminForm", enctype = "multipart/form-data"})){%>
    <%= Html.ValidationSummary(true)%>
    <table class="admintable">
        <tbody>
                <tr>
                    <td class="key">
                        Yahoo (<font color="red">*</font>)
                    </td>
                    <td>
                        <%=Html.TextBoxFor(m=>m.OnlineSupport.Yahoo, new { style = "width: 500px;", @class="required" })%>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        Skype
                    </td>
                    <td>
                        <%=Html.TextBoxFor(m=>m.OnlineSupport.Skype, new { style = "width: 500px;" })%>
                    </td>
                </tr>
                <tr>
                    <td class="key">Thuộc danh mục</td>
                    <td><%=Html.DropDownList("SupportType", new SelectList(Model.SupportType, "Key", "Value").ToList(), "-- Danh mục hỗ trợ --", new { @class = "required" })%></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" name="save" value="Thêm mới" />
                    </td>
                </tr>
        </tbody>
    </table>
    <% } %>
    <%} %>
    <script type="text/javascript">
        $(function() {
        $("#adminForm").validate();
        })
    </script>
</asp:Content>


